package com.atcd.sonw.sonwflaketest.controller;


import com.atcd.sonw.sonwflaketest.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class orderController {

 @Resource
private OrderService orderService;
    //雪花算法
    @GetMapping("/snowflake")
    public  String getSnow(){
       return  orderService.get();
    }
}
